package com.istudy.entity;

import java.util.List;

/**
 * 评论分页类
 *
 * @author xdd
 * @create 2020-08-28 15:37
 */
public class CommentsPage {

    private List<Comment> commentsList = null;//评论列表

    private Integer indexPage = 1;//当前页

    private Integer pageCount;//总页数

    private Integer pageSize = 9;//单页显示数量

    private Integer commentCount;//评论列表总数


    public List<Comment> getCommentsList() {
        return commentsList;
    }

    public void setCommentsList(List<Comment> videoList) {
        this.commentsList = videoList;
    }

    public Integer getIndexPage() {
        return indexPage;
    }

    public void setIndexPage(Integer indexPage) {
        this.indexPage = indexPage;
    }

    public Integer getPageCount() {
        return (commentCount % pageSize == 0 ? (commentCount / pageSize) : ((commentCount / pageSize) + 1));
    }


    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * 获取总记录数
     *
     * @return 评论列表总记录数
     */
    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

}
